
const { CardDecor } = require("./cardDefine");
const { Deck } = require("./deck");

class DXDeck extends Deck {

    initCards() {
        this.allCards = [];
        for( let i = 2; i <= 12; i ++ ){
            if (i == 3) continue;
            this.allCards.push("" + i + CardDecor.HEART);
            this.allCards.push("" + i + CardDecor.BLOCK);
        }
        for( let i = 3; i <= 10; i ++ ){
            if (i == 5 || i == 9) continue;
            this.allCards.push("" + i + CardDecor.SPADE);
            if (i == 3) continue;
            this.allCards.push("" + i + CardDecor.PLUM);
        }
        this.allCards.push("" + 1 + 1);  // 大王-黑桃1
    }
}

exports.DXDeck = DXDeck;